<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .container {
            width: 960px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="container" id="box">
</div>
<script>
    var imgs = ['images/1.png','images/2.png','images/3.png'];
    //m 表示 <img ，是html标签的别一种写法
    //document.getElementById是 dom对象中的一个方法，用来找元素的对象
    var m = document.getElementById('ad');
    var box = document.getElementById('box');
    for (var i in imgs){
        box.innerHTML = box.innerHTML + '<img src="'+imgs[i]+'" width="960">';
    }

</script>
</body>
</html>